:root {
  --primary-color: #1890ff;
  --header-bg: #001529;
  --sider-bg: #001f3d;
  --content-bg: #f0f5ff;
  --card-bg: #ffffff;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --border-color: #15417E;
}

.layout {
  min-height: 100vh;
  background: var(--content-bg);
}

.header {
  background: var(--header-bg);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-primary);
  background: linear-gradient(90deg, #1890ff 0%, #69c0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sider {
  background: var(--sider-bg) !important;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
}

.mainContent {
  padding: 0 24px 24px;
  background: var(--content-bg);
}

.breadcrumb {
  margin: 16px 0;
  color: var(--text-secondary);
}

.content {
  background: var(--content-bg);
  padding: 24px;
  min-height: 280px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* 菜单样式 */
:global(.ant-menu) {
  background: var(--sider-bg) !important;
  border-right: 1px solid var(--border-color) !important;
}

:global(.ant-menu-item) {
  color: var(--text-secondary) !important;
  margin: 4px 0 !important;
}

:global(.ant-menu-item:hover) {
  background: rgba(24, 144, 255, 0.1) !important;
}

:global(.ant-menu-item-selected) {
  background: var(--primary-color) !important;
  color: var(--text-primary) !important;
}

/* 面包屑样式 */
:global(.ant-breadcrumb) {
  color: #15417E !important;
}

:global(.ant-breadcrumb a) {
  color: var(--primary-color) !important;
}

:global(.ant-breadcrumb a:hover) {
  color: #40a9ff !important;
}

/* 卡片样式 */
:global(.ant-card) {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

:global(.ant-card-head) {
  border-bottom: 1px solid rgba(24, 144, 255, 0.1) !important;
}

/* 统一阴影效果 */
:global(.ant-card),
:global(.ant-btn){
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

:global(.ant-card:hover),
:global(.ant-btn:hover) {
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
}

/* 添加菜单图标和文字的默认颜色样式 */
:global(.ant-menu-item),
:global(.ant-menu-submenu-title) {
  color: rgba(255, 255, 255, 0.65) !important;
}

:global(.ant-menu-item .anticon),
:global(.ant-menu-submenu-title .anticon) {
  color: rgba(255, 255, 255, 0.65) !important;
}

/* 选中或悬停时的颜色 */
:global(.ant-menu-item:hover),
:global(.ant-menu-submenu-title:hover),
:global(.ant-menu-item-selected),
:global(.ant-menu-submenu-selected > .ant-menu-submenu-title) {
  color: #fff !important;
}

:global(.ant-menu-item:hover .anticon),
:global(.ant-menu-submenu-title:hover .anticon),
:global(.ant-menu-item-selected .anticon),
:global(.ant-menu-submenu-selected > .ant-menu-submenu-title .anticon) {
  color: #fff !important;
}

/* 子菜单项的颜色 */
:global(.ant-menu-sub.ant-menu-inline .ant-menu-item) {
  color: rgba(255, 255, 255, 0.65) !important;
}

:global(.ant-menu-sub.ant-menu-inline .ant-menu-item:hover),
:global(.ant-menu-sub.ant-menu-inline .ant-menu-item-selected) {
  color: #fff !important;
}

.userInfo {
  display: flex;
  align-items: center;
}

.userDropdown {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s;
}

.userDropdown:hover {
  background: rgba(255, 255, 255, 0.1);
}

.username {
  color: var(--text-primary);
  margin-left: 8px;
}